{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">


    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" value="{$data.name}" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份证</label>
        <div class="layui-input-block">
            <input type="text" name="sf_id" lay-verify="required" value="{$data.sf_id}" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">工号</label>
        <div class="layui-input-block">
            <input type="text" name="no" lay-verify="required" value="{$data.no}" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">登录账号</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required" value="{$data.username}" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">设置密码</label>
        <div class="layui-input-block">
            <input type="text" name="password" lay-verify="required" value="{$data.password}" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input type="text" name="phone" lay-verify="required" value="{$data.phone}" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item c4">
        <label class="layui-form-label">图像</label>
        <div class="layui-input-block">
            <input type="text" name="avatar_img" id="c-pic4" value="{$data.avatar_img}" class="layui-input">
        </div>
        <div class="layui-input-block">
            <button type="button" class="layui-btn faupload" id="faupload-pic4" data-multiple="false"
                    data-input-id="c-pic4"
                    data-preview-id="p-pic4" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传
            </button>
            <button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image"
                    data-input-id="c-pic4" id="fachoose-c-pic4"><i class="iconfont icon-other"></i> 选择
            </button>
            <ul class="layui-row list-inline plupload-preview" id="p-pic4"></ul>
        </div>
    </div>


    <div class="layui-form-item c4">
        <label class="layui-form-label">身份证（正面）</label>
        <div class="layui-input-block">
            <input type="text" name="sf_img1" id="c-pic" value="{$data.sf_img1}" class="layui-input">
        </div>
        <div class="layui-input-block">
            <button type="button" class="layui-btn faupload" id="faupload-pic" data-multiple="false"
                    data-input-id="c-pic"
                    data-preview-id="p-pic" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传
            </button>
            <button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image"
                    data-input-id="c-pic" id="fachoose-c-pic"><i class="iconfont icon-other"></i> 选择
            </button>
            <ul class="layui-row list-inline plupload-preview" id="p-pic"></ul>
        </div>
    </div>

    <div class="layui-form-item c4">
        <label class="layui-form-label">身份证（反面）</label>
        <div class="layui-input-block">
            <input type="text" name="sf_img2" id="c-pic2" value="{$data.sf_img2}" class="layui-input">
        </div>
        <div class="layui-input-block">
            <button type="button" class="layui-btn faupload" id="faupload-pic2" data-multiple="false"
                    data-input-id="c-pic2"
                    data-preview-id="p-pic2" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传
            </button>
            <button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image"
                    data-input-id="c-pic2" id="fachoose-c-pic2"><i class="iconfont icon-other"></i> 选择
            </button>
            <ul class="layui-row list-inline plupload-preview" id="p-pic2"></ul>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">职务类型</label>
        <div class="layui-input-block" id="is_c2">

            <input type="radio" name="type" value="1" checked title="全职" lay-filter="ccc2">

            <input type="radio" name="type" value="2"  title="兼职" lay-filter="ccc2">

        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">设置上级</label>
        <div class="layui-input-block">
            <select name="top_sid"  lay-search>
                <option></option>
                {volist name="sale_list" id="vo"}
                <option value="{$vo.id}"
                <?php if( $vo['id'] == $data['top_sid']){ ?> selected <?php }?>>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">设置上级id</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="top_sid"  value="{$data.top_sid}" autocomplete="off" placeholder="输入上级id"-->
<!--                   class="layui-input">-->
<!--        </div>-->
<!--    </div>-->


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}